package org.semanticflash.rdf.sparql
{
	import com.bigflexlib.x.mx.collections.Slice;

	public class SPARQLUtil
	{
		
        /**
         * 
         * TODO. what if there is a slice already? remove/replace?
         * 
         * @param sparql
         * @param slice
         * @return 
         * 
         */        
        public static function sliceSparql( sparql:String, slice:Slice=null ):String
        {
        	if ( slice == null )
        		return sparql;
        	return sparql + " " + slice.offsetLimitString;
        }		

	}
}